<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">

    <script>

        var s = "LOVE LIFE ！ LOVE JAVA ...";
        //alert(s.replace("LOVE ", "爱"));
        alert(s.replace(/\LOVE/g, "爱"));

    </script>

</head>
<body>

</body>
</html>